<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>7.Backbone与服务器接口之RESTful</title>
    <script src="http://apps.bdimg.com/libs/underscore.js/1.7.0/underscore-min.js"></script>
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="http://apps.bdimg.com/libs/backbone.js/1.1.2/backbone-min.js"></script>
</head>
<body>

</body>
<script>
    var Task = Backbone.Model.extend({
        defaults:{
             'identify':'p_chou',
             'title':1
        },
        urlRoot:'http://api.yytianqi.com/forecast7d?city=CH020100&key=vcgm5rb2c9nmtt25'
    })
    var task = new Task({

    })
    var json =task.fetch()

    console.log(JSON.stringify(json))
</script>
</html>